package com.itheima.factory;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-26 18:04
 **/
public class ProductFactoryTest {
    public static void main(String[] args) {
        ProductFactory factory = new ProductFactory();
        Product car = factory.getProduct("car");
        car.show();
        Product mobile = factory.getProduct("mobile");
        mobile.show();
    }
}
